#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>


extern char **environ;

int main()
{
/*
	char **ep = environ;
	char *p;
	while ((p = *ep++))
		printf("%s\n", p);

	char *k="PATH";
	printf("%d\n", sizeof(k));
	printf("%s\n", getenv(k));
*/

	pid_t pid_old = getpid(), pid_new;
	//printf("Now the  process id, pid_old =  %d!\n",pid_old);

	pid_t pid;
	if ((pid = fork()) < 0) {
		printf("Fork child process Failed!\n");
	}
	else if (pid == 0) {
		//printf("-------This is in the child process, pid = %d\n",pid);
		//pid_new = getpid();
		//printf("-------Now the  child process id pid_new =  %d!\n",pid_new);
		//printf("-------Child process exit!\n");
		_exit(0);
	}

	//printf("+++++++This is in the parent process, child pid = %d\n",pid);
	//pid_new = getpid();
	//printf("+++++++This is in the parent process, pid_new =%d\n",pid_new);

	return 0;
}

